package br.com.model.entidade;

import java.math.BigInteger;
import java.util.Date;

/**
 *
 * @author Anderson
 */
public class Customer {
  private BigInteger customerId;
  private String tenantId;
  private String firstName;
  private String lastName;
  private String location;
  private Date updateTime;

  // Getters and Setters
  public BigInteger getCustomerId() {
    return customerId;
  }

  public void setCustomerId(BigInteger customerId) {
    this.customerId = customerId;
  }

  public String getTenantId() {
    return tenantId;
  }

  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }

  public String getFirstName() {
    return firstName;
  }

  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }

  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }

  public String getLocation() {
    return location;
  }

  public void setLocation(String location) {
    this.location = location;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }


  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    Customer that = (Customer) o;

    return !(customerId != null ? !customerId.equals(that.customerId)
        : that.customerId != null);

  }

  public int hashCode() {
    return (customerId != null ? customerId.hashCode() : 0);
  }
  
  public String toString() {
	return "Customer Id: " + customerId + ", Tenant Id: " + tenantId + 
		", First Name: " + firstName + ", Last Name: " + lastName + ", Location: " + location + ", Update Time: " + updateTime;
	  
  }
}
